<template>
  <view class="main">
    <!-- 发布内容标题 -->
    <view class="title">公告通知</view>
    <view class="content">
      <!-- 发布内容 -->
<view style="margin-bottom: 20rpx; word-break: break-all;">{{item?.announcementContent}}</view>
      <!-- 发布者，时间 -->
  <view class="time">{{item?.createTime.split(' ')[0]}}</view>


    </view>
  </view>
</template>
<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref } from 'vue';
const item=ref()
onLoad((e)=>{
item.value=JSON.parse(e.infoItem)
console.log(item.value,'777777777777');
})
</script>
<style scoped lang="scss">
.main{
  padding: 0 20rpx;
}
.title{
  width: 100%;
  text-align: center;
  font-size: 34rpx;
  height: 100rpx;
  line-height: 100rpx;
  font-weight: 700;
  border-bottom: 2rpx solid #eee;
}
.content{
  margin-top: 20rpx;
  .time{
    display: flex;
    justify-content: flex-end;
    font-size: 30rpx;
  }
}
</style>